const app = getApp()

Page({
  data: {
    detail: '',
    tagStyle: {
      p: 'color: red'
    }
  },
  onLoad({ id }) {
    const self = this
    app.http({
      url: `/articles/${id}`
    }).then(res => {
      self.setData({
        detail: res.data.detail
      })
      console.log(res)
    })
  }
})